package com.gis507.mapreduce.outputformat;

import com.gis507.mapreduce.AISBean.AisClassifyBean;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

import java.io.IOException;

public class AISOutputFormat extends FileOutputFormat<AisClassifyBean, NullWritable> {


    @Override
    public RecordWriter<AisClassifyBean, NullWritable> getRecordWriter(TaskAttemptContext job) throws IOException, InterruptedException {

        AISRecordWriter arw = new AISRecordWriter(job);

        return arw;
    }
}
